﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cn.Edwon.Web.Ac {
    public class AcConfigParms {
        private Boolean _AcEnable;
        /// <summary>
        /// 是否执行身份校验
        /// </summary>
        public Boolean Enable {
            set { _AcEnable = value; }
            get { return _AcEnable; }
        }
        private Type _AcType;
        /// <summary>
        /// 校验类型
        /// </summary>
        public Type Type {
            get {
                return _AcType;
            }
            set {
                _AcType = value;
            }
        }
        private String _AcConfigUrl;
        /// <summary>
        /// 配置文件路径
        /// </summary>
        public String ConfigUrl {
            get {
                return _AcConfigUrl;
            }
            set {
                _AcConfigUrl = value;
            }
        }
        private String _AcLoginUrl;
        /// <summary>
        /// session实效之后导向的页面
        /// </summary>
        public String LoginUrl {
            get {
                return _AcLoginUrl;
            }
            set {
                _AcLoginUrl = value;
            }
        }

        private String _AcPowerLowUrl;
        /// <summary>
        /// 身份认证失败后的导向页面
        /// </summary>
        public String PowerLowUrl {
            get {
                return _AcPowerLowUrl;
            }
            set {
                _AcPowerLowUrl = value;
            }
        }


        private String _RedirectAfterLogin;
        /// <summary>
        /// 正确登录后导向的页面
        /// </summary>
        public String RedirectAfterLogin {
            get { return _RedirectAfterLogin; }
            set { _RedirectAfterLogin = value; }
        }

        private IList<String> _AcPublicUrls;
        /// <summary>
        /// 不需要审核的页面
        /// </summary>
        public IList<String> PublicUrls {
            get {
                return _AcPublicUrls;
            }
            set {
                _AcPublicUrls = value;
            }
        }
        private IList<String> _AcActiveUrls;
        public IList<String> ActivedUrls {
            get {
                return _AcActiveUrls;
            }
            set {
                _AcActiveUrls = value;
            }
        }
    }
}
